package com.qidian.mes.sys.service.impl;

import com.qidian.mes.pojo.Dept;
import com.qidian.mes.sys.mapper.DeptMapper;
import com.qidian.mes.sys.service.DeptService;
import com.qidian.mes.util.pojo.QdResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @Author 戴着假发的程序员
 * @Company 起点编程
 * @Description
 * @Time 2024/4/10 14:55
 */
@Transactional
@Service
public class DeptServiceImpl implements DeptService {
    @Autowired
    private DeptMapper deptMapper;
    @Override
    public QdResult<List<Dept>> queryByParentId(Long parentId) {
        return QdResult.success(deptMapper.selectByParentId(parentId));
    }
}
